package com.example.spidertp.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.spidertp.core.SpiderThreadPool;
import com.example.spidertp.core.model.enums.TpLifecycleTypeEnum;
import com.example.spidertp.core.model.entity.TpLifecycle;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2022/9/24 4:58 下午
 */
public interface TpLifecycleService extends IService<TpLifecycle> {

    /**
     * 记录线程池变更记录
     * 包括线程池的创建，销毁，参数变更
     *
     * @param threadPool
     * @param poolName
     */
    void createTpRecord(String poolName, SpiderThreadPool threadPool, TpLifecycleTypeEnum typeEnum);


}
